<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<!--  scriptList start -->
<script type="text/javascript" src="../js/jquery-1.7.1.js"></script>

<script type="text/javascript">
$(document).ready(function(){


	 $("#cancel").click(function(){  
		 
			 
	 	window.location.href="pics.php";
			 
	 })
});
</script>
<title>精彩图片信息</title>
<base target="_self">
<link rel="stylesheet" type="text/css" href="../css/admin/base.css" />
<link rel="stylesheet" type="text/css" href="../css/admin/main.css" />
<style type="text/css">
tr{
	height:40px;
}
input{
	width:500px; 
	background:url(../images/admin/inputbg.gif) repeat-x; 
	border:solid 1px #d1d1d1; 
	font-size:9pt; 
	font-family:Verdana, Geneva, sans-serif;
	
}
</style>
</head>
<body leftmargin="8" topmargin='8'>
<?php


	$id=$_GET['id'];
	$title=$_GET['title'];
    $src=$_GET['src'];
	if ($_POST['Submit']!="")
	{
	require_once("../conn.php"); 
	$id=$_POST['id'];
	$title = $_POST['title'];
	$sql="update t_qianse_pic set title = '".$title."'  where id = ".$id;
 	mysql_query($sql);
	echo "<script language='javascript'>alert('修改成功!');window.location.href='pics.php';</script>";
	}

						
?>
<form name="form1" method="post" action="picsedit.php"> 

<table width="98%" align="center" border="0" cellpadding="4" cellspacing="1" bgcolor="#CBD8AC" style="margin-bottom:8px">
  <tr bgcolor="#EEF4EA">
    <td colspan="2" background="../images/admin/wbg.gif" class='title'><span>精彩图片信息</span></td>
  </tr>
   <?php
		 echo "<input type='hidden' name='id' id='id' value='".$id."'></input>";
	?>
   <tr bgcolor="#FFFFFF">
    <td width="25%" bgcolor="#FFFFFF">图片标题：</td>
    <td width="75%" bgcolor="#FFFFFF">
    <?php
		 echo "<input type='text' name='title' id='title' value='".$title."'></input>";
	?>
	</td>
  </tr>
  <tr bgcolor="#FFFFFF">
    <td width="25%" bgcolor="#FFFFFF">图片位置：</td>
    <td width="75%" bgcolor="#FFFFFF">
    <?php
		 echo "<input type='text' name='src' id='src' value='".$src."' readonly = 'readonly' ></input>";
	?>
	</td>
  </tr>
  
  <tr bgcolor="#FFFFFF">
  <td>
  	
	
  </td>
  <td>
  	<input type="submit" name="Submit" id="Submit" value="提交" style="width:50px;"> 
  	<input type="button" name="Cancel" id="cancel" value="返回" style="width:50px;"> 
  </td>
  </tr>
</table>
</form>
</body>
</html>